package com.example.controller;

import com.example.service.ExternalDataImporterService;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/externalDataImporter")
@RequiredArgsConstructor
public class ExternalDataImporterController {

    private static final Logger log = LoggerFactory.getLogger(ExternalDataImporterController.class);

    @Autowired
    private ExternalDataImporterService externalDataImporterService;

    @GetMapping
    public String easyExcelDemo(HttpServletResponse resp) {
//        log.info("获取用户TOKEN");
        return externalDataImporterService.easyExcelDemo(resp);
    }
}
